package com.scy.java.object.dt;
//几何图形
public class GeometricObject {
    //属性
    private String color;
    private double weight;

    public GeometricObject() {
    }

    //  全参构造器
    public GeometricObject(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }
    //计算面积的方法
    public double findArea(){
        return 0.0;
    }


    //添加属性的Get Set方法
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
